/**
 * Copyright (C) 2021 - 2031 O-Cubes Co., Ltd.
 */

/****************************************************************
 *  @file    device_uart.h
 *  @brief   Designware uart device header file
 *  @version v1.0
 *  @date    03. Apr. 2023
 *  @author  liuchao
 ****************************************************************/

#ifndef __DEVICE_UART_H__
#define __DEVICE_UART_H__

#include "dev_uart.h"

/**
 * \name	DesignWare UART Object Number
 * @{
 */
#define DW_UART_NUM     (5)     /*!< DesignWare UART valid number */
/** @} end of name */

/**
 * \name	Designware UART Object ID Macros
 * @{
 */
#define DW_UART_0_ID    0       /*!< uart 0 id macro */
#define DW_UART_1_ID    1       /*!< uart 1 id macro */
#define DW_UART_2_ID    2       /*!< uart 2 id macro */
#define DW_UART_3_ID    3       /*!< uart 3 id macro */
#define DW_UART_4_ID    4       /*!< uart 4 id macro */
/** @} end of name */

/**
 * \name	Designware UART Object Control Macros
 * @{
 */
#define USE_DW_UART_0   1       /*!< enable use designware uart 0 */
#define USE_DW_UART_1   1       /*!< enable use designware uart 1 */
#define USE_DW_UART_2   1       /*!< enable use designware uart 2 */
#define USE_DW_UART_3   1       /*!< enable use designware uart 3 */
#define USE_DW_UART_4   1       /*!< enable use designware uart 4 */

/**
 * \name	Designware UART FIFO LEN AND CLOCK
 * @{
 */
#define DW_UART_FIFO_LEN        16

/** @} end of name */

#ifdef __cplusplus
extern "C" {
#endif


#ifdef __cplusplus
}
#endif


#endif /* __DEVICE_UART_H__ */
